package com.example.mountainwalker.service.impl;

import com.example.mountainwalker.entity.GroupTourRegistrationInfo;
import com.example.mountainwalker.entity.StrategyCommentInfo;
import com.example.mountainwalker.entity.TravelStrategyInfo;
import com.example.mountainwalker.mapper.StrategyCommentMapper;
import com.example.mountainwalker.mapper.TravelStrategyMapper;
import com.example.mountainwalker.service.StrategyCommentService;
import com.example.mountainwalker.service.TravelStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StrategyCommentServiceImpl implements StrategyCommentService {
    @Autowired
    private StrategyCommentMapper strategyCommentMapper;

    @Override
    public List<StrategyCommentInfo> getStrategyCommentInfo() {
        List<StrategyCommentInfo> strategyCommentInfoList = strategyCommentMapper.getStrategyCommentInfo();
        return strategyCommentInfoList;
    }

    @Override
    public StrategyCommentInfo getStrategyCommentInfoById(Integer StrategyCommentID) {
        StrategyCommentInfo info = strategyCommentMapper.getStrategyCommentInfoById(StrategyCommentID);
        return info;
    }

    @Override
    public int deleteStrategyCommentInfoById(Integer StrategyCommentID) {
        int i = strategyCommentMapper.deleteStrategyCommentInfoById(StrategyCommentID);
        return i;
    }

    @Override
    public int insertStrategyCommentInfo(StrategyCommentInfo strategyCommentInfo) {
        int i = strategyCommentMapper.insertStrategyCommentInfo(strategyCommentInfo);
        return i;
    }

    @Override public int updateStrategyCommentInfo(StrategyCommentInfo strategyCommentInfo) {
        int i = strategyCommentMapper.updateStrategyCommentInfo(strategyCommentInfo);
        return i;
    }
}
